<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
$bar="All Salary of ".$FullName;
        echo '<table id="box-table-a" cellspacing="1" align="right" width="900px">';
        echo '<tr><td colspan=5 align=right class=bar>'.$bar.'</td></tr>';
        //echo '<tr><td colspan=5 align=right class=bar>'.$total_rows.'</td></tr>';
        echo '<tr><td colspan=5 align=right class=pagination>'.$pagination.'</td></tr>';
        echo '
              <th>From Date</th>
              <th>To Date</th>
              <th>Action</th>';
        foreach($query->result() as $row){
            //$images='<img src="'.base_url().'application/templates/images/'.$row->staff_avarta.'" width=100 height=70>';
            //$details = anchor("user/loadUpdateForm/$row->Staff_ID",$images);
            echo "<tr>
                        <td class=\"row10\">$row->FromDate</td>
                        <td class=\"row12\">$row->ToDate</td>";
                        
            $titleViewSalary = '<img src ="'.base_url().'templates/images/icons/view_salary.jpeg" height=25 title="Click here to view salary "/>';
            $SFT_ID=$row->Staff_ID.".".$row->FromDate.".".$row->ToDate;
            $view_salary=anchor("staff/viewSalaryOneStaff/$SFT_ID",$titleViewSalary);
            
            echo "<td class=\"row12\" align=\"center\">$view_salary</td></tr>";
            }
            echo '<tr><td colspan=5 align=right class=pagination>'.$pagination.'</td></tr>';
            $titleback = '<img src ="'.base_url().'templates/images/icons/back.jpg" width=40 height=25 title="Back"/>';
            $back = anchor("staff/index",$titleback);
            echo '<tr><td colspan=5 align=center>'. $back.'</td></tr>';
        echo '</table>';
?>
